/*eslint-disable */ 
import request from "@/utils/request";

export function classList(data) {
    return request({
      url: `class/list?pageNumber=${data.pageNumber}&pagesize=${data.pagesize}`,
      method: "get",
    });
}
export function add(data) {
  return request({
    url: `/class/addClass`,
    method: "post",
    data:data
  });
}
export function deleteC(id) {
  return request({
    url: `/class/deleteClass?id=${id}`,
    method: "post",
  });
}
export function updateCla(data) {
  return request({
    url: `/class/updateClass`,
    method: "post",
    data:data
  });
}
// 预约练车
export function practiceCar(data) {
  return request({
    url: `/class/practice`,
    method: "post",
    data:data
  });
}
export function classInfo(id) {
  return request({
    url: `/class/getInfo?id=${id}`,
    method: "get",
  });
}
export function searchClass(data) {
  return request({
    url: "class/search",
    data: data,
    method: "post",
  });
}


